import requests

url='http://127.0.0.1:8000/z/login/'

data={'username':'root','password':'123'}

r=requests.post(url,data=data)

print(r)